//
// Created by xili on 2024/7/30 10:17.
// Go big or go home.
//
using namespace std;

class Solution {
public:
    int rangeBitwiseAnd(int left, int right) {
        while (left < right) {
            right -= right & -right;
        }
        return right;
    }
};